package srjava.messages;

import java.io.IOException;
import java.io.StringReader;

public class TaskMsg extends Message {
	SrString task;
	
	public TaskMsg() {
		this.msgType = MessageType.TASK;
		this.task = new SrString();
	}

	public TaskMsg(SrString task) {
		this.msgType = MessageType.TASK;
		this.task = task;
	}

	@Override
	public String serialize() {
		String pom = super.serialize() + task.serialize();
		return pom;
	}

	@Override
	public void deSerialize(StringReader s) throws IOException {
		//super.deSerialize(s);
		task.deSerialize(s);
	}

	public SrString getTask() {
		return task;
	}

	public void setTask(SrString task) {
		this.task = task;
	}
	
	
}
